<?

$tin="select * from tbl_content where parent=92 order by id limit 0,5 ";
$k=@mysql_query($tin,$conn);
while($r=@mysql_fetch_assoc($k))
{
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

                <tr>

                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr>

                      <td colspan="2" valign="top" class="style222" style="padding-top:3px;"> <a href="./?frame=news_detail&id=<?=$r['id']?>" class="link"><?=$r["name"]?></a>

                        <span> (<?=date('d/m/Y',strtotime($r['date_added']))?>) </span></td>

                          </tr>

                    </table></td>

                    </tr>

                <tr>

                  <td><div align="justify"><? if($r["image"]==''){}

		else {?>

		<img src="<?=$r["image"]?>"  width="150" height="120" hspace="8" vspace="4" align="left" /><? }?><?=$r["detail_short"]?></div>

  <br />

  </td>

</tr>

</table>
<? }?>				

<table align="center" border="0" width="98%" cellpadding="0" cellspacing="0">

	<tr>

                  <td>

				  <table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr>

                      <td class="style222">C&aacute;c tin kh&aacute;c...</td>

                        </tr>

<?

$code = $_lang == 'vn' ? 'vn_news' : 'en_news';

$parentWhere = "parent = (select id from tbl_content_category where code='".$code."')";



$sql = "select * from tbl_content where $parentWhere order by sort,date_added desc limit 5,15";

$result = @mysql_query($sql,$conn);

while($n=@mysql_fetch_assoc($result)){

?>

                    <tr>

                      <td class="style40"><img src="images/icon_66.jpg" width="9" height="9" hspace="7" />

					  <a href="./?frame=news_detail&id=<?=$n['id']?>" class="link"><?=$n['name']?></a> 

					  <span>(<?=date('d/m/Y',strtotime($n['date_added']))?>)</span><br />

                       </td>

                        </tr>

                   <? }?>

                    </table></td>

                    </tr>

</table>



			   